#include <stdio.h>
#include <signal.h>

void alarm_callback(int ign)
{
	printf("Hi! I'm alarm callback\n");
}

int main()
{
	signal(SIGALRM, alarm_callback);
	alarm(5); /* it doesn't wait */
	sleep(10);
	printf("I'm main and I finished\n");
	return 0;
}
